CREATE TABLE [dbo].[TTFERI]
(
[FE_FERI] [dbo].[TD_DT_001] NOT NULL,
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[TI_FERI] [dbo].[TD_VC_001] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTFERI__CO_USUA___4B0D20AB] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTFERI__FE_USUA___4C0144E4] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TTFERI__CO_USUA___4CF5691D] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TTFERI__FE_USUA___4DE98D56] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTFERI] ADD CONSTRAINT [PK__TTFERI__C473A78A5BCD9859] PRIMARY KEY CLUSTERED  ([FE_FERI], [CO_EMPR]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[TTFERI] TO [public]
GRANT INSERT ON  [dbo].[TTFERI] TO [public]
GRANT DELETE ON  [dbo].[TTFERI] TO [public]
GRANT UPDATE ON  [dbo].[TTFERI] TO [public]
GO
